package com.yuntian.mapper;


import com.yuntian.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {

    void insert(Admin admin);

    @Select("select * from admin where admin_name = #{adminName}")
    Admin getByAdminName(String adminName);

    @Select("select * from admin where admin_id = #{adminId}")
    Admin getByAdminId(Long adminId);
}
